package com.redepronik.negosys.invfac.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * The persistent class for the banco database table.
 * 
 */
@Entity
@Table(schema = "invfac", name = "banco")
@NamedQuery(name = "Banco.findAll", query = "SELECT b FROM Banco b")
public class Banco implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize = 1, name = "BANCO_BANCOID_GENERATOR", sequenceName = "INVFAC.BANCO_BANCOID_SEQ")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "BANCO_BANCOID_GENERATOR")
	@Column(unique = true, nullable = false)
	private Integer bancoid;

	@Column(nullable = false)
	private Boolean activo;

	@Column(nullable = false, length = 100)
	private String nombre;

	public Banco() {
	}

	public Boolean getActivo() {
		return this.activo;
	}

	public Integer getBancoid() {
		return this.bancoid;
	}

	public String getNombre() {
		return this.nombre;
	}

	public void setActivo(Boolean activo) {
		this.activo = activo;
	}

	public void setBancoid(Integer bancoid) {
		this.bancoid = bancoid;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

}